package com.yrot.admin.form;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.time.LocalDateTime;

/**
 * Created by hemin on 2019/4/13.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ExpertValid {

    private Integer expertId;

    /**
     * 姓名
     */
    @NotEmpty(message = "姓名不能为空")
    private String expertName;

    /**
     * 手机号
     */
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^1[34578]\\d{9}$",message = "请输入正确格式的手机号")
    private String expertPhone;

    /**
     * 性别0男1女
     */
    @NotNull(message = "性别不能为空")
    private Integer expertSex;

    /**
     * 邮箱
     */
    @Email(message = "请输入正确的邮箱")
    private String expertEmail;

    /**
     * 用户名
     */
    @NotEmpty(message = "登录账号不能为空")
    private String expertUsername;

    /**
     *
     */
    private String roleName;

}
